<?php

$url = "http://localhost:8080/moms-diary/services/timeline";

$context = stream_context_create(array(
		'http' => array(
				'header'  => "Authorization: Basic " . base64_encode("ferdhi.adrian@babytivities.com:ferdhi")
		)
));

$data = file_get_contents($url, false, $context);

var_dump($data);
if(isset($data)) {
	$json = json_decode($data, TRUE);
	echo "success";
}else{
	echo "failed";
}
